package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.CategoryBrand;
import com.weixing.mall.provider.model.query.CategoryBrandQuery;
import com.weixing.mall.provider.model.vo.CategoryBrandVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品类目品牌关联表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {

    /**
     * @Description 条件查询类目品牌关联 <br/>
     * @author gjq
     * @date 2019/8/7 10:02
     * @param categoryBrandQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.CategoryBrandVo>
     */
    List<CategoryBrandVo> selectList( @Param("qs")CategoryBrandQuery categoryBrandQuery);

    CategoryBrand selectBrand(Integer brandId);

    void deleteByIds( @Param("categoryId")long categoryId, @Param("ids")long[] ids);
}